package com.example.demo.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix="config.server")
@Component
public class ConfigBean {
    private String host;

    private String accessKeyId;

    private String accessKeySecret;

    private String ossURL;

    private String bucketName;
    
    @Bean
    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    @Bean
    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }
    
    @Bean
    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    @Bean
    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    @Bean
    public String getOssURL() {
        return ossURL;
    }

    public void setOssURL(String ossURL) {
        this.ossURL = ossURL;
    }
}
